<script setup>
	import { useStore } from '@/store'
	onLaunch(()=>{
		console.log('App Launch')
	})
	onShow(()=>{
		console.log('App Show')
		// verifyUser()
	})
	onHide(()=>{
		console.log('App Hide')
	})
	const verifyUser = async () => {
		const store = useStore()
		const router = useRouter()
		let loginUser = store.loginUser
		await store.getLoginUser()
		// 如果没登陆，跳转到登录页面
		if (
			!loginUser ||
			!loginUser.role ||
			loginUser.role === ''
		) {
			router.replace(`/pages/login/login?redirect=/pages/login/login`);
			return;
		}
	}
</script>

<style lang="scss">
/*每个页面公共css */
@import "tailwindcss/base";
@import "tailwindcss/utilities";
</style>
